home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / IFF / IFF_Forms / ANIM.op6.doc < prev    next >
Encoding:
Text File  |  1993-03-01  |  4.7 KB  |  142 lines

  1. Stereo (3D) Animations
  2.  
  3. New Opcode for FORM ANIM
  4. ========================
  5.  
  6. Submitted by William J. Coldwell (08/23/91)
  7.  
  8. TITLE:  New OpCode 6 Addition to ANIM IFF Format
  9.  
  10.     Revision Date: 20.8.91
  11.  
  12.             Prepared by:
  13.                          Cryogenic Software
  14.                          13045 SouthEast Stark St
  15.                          Suite 144
  16.                          Portland, OR 97233-1557
  17.                          Contact:  William J. Coldwell
  18.  
  19.                   Voice: (503) 254-8147 (11a-4p PDT/PST)
  20.                    Data: (503) 257-4823 (EMail to SYSOP)
  21.                  Portal: Cryogenic
  22.                    UUCP: uunet!m2xenix!percy!cryo!billc
  23.                Internet: billc@cryo.rain.com
  24.  
  25.  
  26. 1. Introduction
  27.  
  28.     In 1989, we added support into one of our commercial products to
  29.     support the Haitex X-Specs glasses.  This documentation will not
  30.     go into a detailed description of this product.  Contact Haitex
  31.     for more information concerning the hardware:
  32.  
  33.                            Haitex Resources, Inc.
  34.                            Post Office Box 20609
  35.                            Charleston, SC 29413
  36.                              Voice: (803) 881-7518
  37.                                Fax: (803) 881-7522
  38.                            Contact: Shawn Glisson
  39.  
  40.     We found that there was not a supported way to display stereo
  41.     animations using the current IFF ANIM OpCode 5 specification.
  42.  
  43.     Cryogenic supported OpCode 6 as an internal format in our
  44.     commercial programs (see below) and provided Public Domain
  45.     players.  It is our intention at this time, to release this
  46.     format to other developers wishing to support stereo animations
  47.     using this OpCode.
  48.  
  49.     When we first started this project, the current Amiga machines
  50.     had a 512K of CHIP RAM maximum.  This caused some memory problems
  51.     with some of the higher resolution stereo animations, since the
  52.     Quad Buffers were in CHIP RAM for our players.  It was our
  53.     intention to attempt to do some memory magic to require only
  54.     two of the four bitmaps to be in CHIP RAM at one time.  It was
  55.     our feeling that this would have caused the animations to slow
  56.     down, due to data swapping that may or may not have needed to
  57.     be done.  By the end of 1989, all development had stopped on
  58.     OpCode 6.  This left all buffers in CHIP, and the format has
  59.     remained the same since then.
  60.  
  61.  
  62. 2. OpCode 6 Additions to OpCode 5
  63.  
  64.     Please refer to the ANIM IFF format submitted by Sparta/Aegis.
  65.  
  66.     The format is exactly the same as OpCode 5 but is QUAD buffered
  67.     instead of DOUBLE buffered.  This allows the player to show 2
  68.     screens at one time for the X-Specs Glasses.  Each picture MUST
  69.     be viewed for 1/60th of a second, therefore to see a 3-D Picture
  70.     the viewer can only play ANIMs at 30 frames per second.
  71.     (2 pictures = 1 frame).
  72.  
  73.     The IFF file is stored exactly the same except that instead
  74.     of having each DLTA (delta) modify bitmap two frames back, it
  75.     modifies the bitmap four frames back.
  76.  
  77.     Example:
  78.  
  79.     ------------------------
  80.     |                      |
  81.     |   BMHD               |
  82.     |                      |
  83.     ------------------------
  84.     |   DLTA  (1)          |
  85.      ------------------------
  86.     |   DLTA  (2)          |
  87.     ------------------------
  88.     |   DLTA  (3)          |
  89.     ------------------------
  90.     |   DLTA  (4)          |
  91.     ------------------------
  92.     |   DLTA  (5)          |
  93.     ------------------------
  94.     |   DLTA  (6)          |
  95.     ------------------------
  96.             .
  97.             .
  98.             .
  99.     ------------------------
  100.     |   DLTA  (x)          |
  101.     ------------------------
  102.  
  103.  
  104. 3. Playing OpCode 6 ANIMs
  105.  
  106.     Four bitmaps are allocated.  Bitmaps 1 and 3 are the left views,
  107.     and bitmaps 2 and 4 are the right.
  108.  
  109.     The First bitmap is gets its image from the bitmap in the file
  110.     (BMHD).  The Second bitmap is a copy of the first with DLTA (1)
  111.     performed on it.  The Third Bitmap is a copy of the first with
  112.     DLTA (2) performed on it.  The Fourth Bitmap is a copy of the
  113.     first with DLTA (3) performed on it.
  114.  
  115.     We now have the first two 3-D Pictures:
  116.         One in bitmaps 1 and 2 and the other in bitmaps 3 and 4
  117.  
  118.     DLTA (6) is used to create the third left view from bitmap 1.
  119.     DLTA (7) is used to create the third right view from bitmap 2.
  120.  
  121.     DLTA (8) is used to create the forth left view from bitmap 3.
  122.     DLTA (9) is used to create the forth right view from bitmap 4.
  123.  
  124.     NOTE:  This technique requires 4 Loop frames at the end to
  125.     perform looping.
  126.  
  127.  
  128. 4. Chunk Changes
  129.  
  130.     In the ANHDChunk structure the only differences between OpCode
  131.     5 and OpCode 6 are the _Operation_ field which should be set to
  132.     6, and the _Interleave_ field which should be set to 4.
  133.  
  134.  
  135. 5. Supporting Software
  136.  
  137.     3-D Professional 1.0+ (Progressive Peripherals and Software)
  138.     View 1.7 and above (Public Domain) on a Fred Fish Disk
  139.     MSA: Make Stereo ANIM (internal) Available upon request.
  140.     PSA: Play Stereo ANIM (internal) Available upon request.
  141.  
  142.